<template>
  <div class="a">
    <!-- <div class="l"> -->
    <div class="l">
      <img src="http://liufusong.top:8080/img/profile/bg.png" alt="" />
    </div>
    <div class="lp">
      <van-image
        class="lop"
        width="60.4px"
        height="60.4px"
        fit="contain"
        src="http://liufusong.top:8080/img/profile/avatar.png"
      />
    </div>
    <p>游客</p>
    <button @click="fn">去登入</button>

    <van-grid :column-num="3" class="co">
      <van-grid-item icon="star-o" text="我的收藏" />
      <van-grid-item icon="wap-home-o" text="我的出租" />
      <van-grid-item icon="clock-o" text="看房记录" />
      <van-grid-item icon="photo-o" text="成为房主" />
      <van-grid-item icon="contact" text="个人资料" />
      <van-grid-item icon="service-o" text="联系我们" />
    </van-grid>
    <div class="xx">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
import router from '@/router'
// import router
export default {
  methods: {
    fn () {
      router.push('/loginluo')
    }
  }
}
</script>

<style scoped lang="less">
* {
  margin: 0;
  padding: 0;
}
img {
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  // height: 100%;
}
.a {
  position: relative;
  .lp {
    width: 340px;
    height: 165px;
    background-color: #fff;
   box-shadow: 0 0 10px 3px #ddd;
    position: absolute;
    top: 110px;
    left: 20px;
    padding-top: 60px;
    // padding-left: 140px;

    .lop {
      position: fixed;
      top: 75px;
      left: 40%;
    }
  }
  .co{
    margin-top: 140px;
  }
  p {
    position: absolute;
    top: 180px;
    left: 162px;
    // margin: 0 auto;
    // margin-bottom: 10px;
  }
  button {
    position: fixed;
    top: 240px;
    left: 145px;
    background-color: #21b97a;
    border-radius: 5px;
    border: none;
    color: #fff;
    // padding: 4px;
    width: 70px;
    height: 26px;
    font-size: 12px;
  }
  .l {
    // position: absolute;
    width: 375px;
    // background-color: aqua;
    img {
      width: 100%;
      // height: 100%;
    }
  }
}
</style>
